package com.sc.study.sleeproom.domain;

import com.sc.study.student.domain.ScStudent;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sc.common.annotation.Excel;
import com.sc.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 寝室对象 sc_sleep_room
 * 
 * @author sc
 * @date 2022-03-14
 */
public class ScSleepRoom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 栋 */
    @Excel(name = "栋")
    private String building;

    /** 层 */
    @Excel(name = "层")
    private String layer;

    /** 男/女 */
    @Excel(name = "男/女")
    private String sex;

    /** 状态 */
    @Excel(name = "状态")
    private Long state;

    //某人绑定的SleepRoomPersonId
    private Integer sleepRoomPersonId;

    //栋的楼层
    private List<ScSleepRoom> children;

    //班级寝室绑定的学生
    private List<ScStudent> studentList;


    public List<ScStudent> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<ScStudent> studentList) {
        this.studentList = studentList;
    }

    public Integer getSleepRoomPersonId() {
        return sleepRoomPersonId;
    }

    public void setSleepRoomPersonId(Integer sleepRoomPersonId) {
        this.sleepRoomPersonId = sleepRoomPersonId;
    }

    public List<ScSleepRoom> getChildren() {
        return children;
    }

    public void setChildren(List<ScSleepRoom> children) {
        this.children = children;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setBuilding(String building) 
    {
        this.building = building;
    }

    public String getBuilding() 
    {
        return building;
    }
    public void setLayer(String layer) 
    {
        this.layer = layer;
    }

    public String getLayer() 
    {
        return layer;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("building", getBuilding())
            .append("layer", getLayer())
            .append("sex", getSex())
            .append("state", getState())
            .toString();
    }
}
